package com.yx.frame.util;

import com.yx.frame.jdbc.Sql;
import com.yx.frame.jdbc.SqlEntry;
import java.util.ArrayList;
import java.util.List;

public class SaveYhLogThread extends Thread {
    private String yh_id;
    private String dlm;
    private String czmk;
    private String mkms;
    private String qqcs;
    private String xtbs;
    private String imei;

    public SaveYhLogThread(String yh_id, String dlm, String czmk, String mkms, String qqcs, String xtbs, String imei) {
        this.yh_id = yh_id;
        this.dlm = dlm;
        this.czmk = czmk;
        this.mkms = mkms;
        this.qqcs = qqcs;
        this.xtbs = xtbs;
        this.imei = imei;
    }

    public void run() {
        try {
            List sqls = new ArrayList();
            SqlEntry sqlEntry = null;
            String[] parmsTypeArray = (String[]) null;
            String[] parmsValueArray = (String[]) null;
            sqlEntry = new SqlEntry("INSERT INTO WXBS_YH_LOG (ID, YH_ID, DLM, CZMK, MKMS, QQCS, XTBS, IMEI) VALUES (SYS_GUID(), ?, ?, ?, ?, ?, ?, ?)");
            parmsTypeArray = new String[] { "String", "String", "String", "String", "String", "String", "String" };
            sqlEntry.setParamType(parmsTypeArray);
            parmsValueArray = new String[] { this.yh_id, this.dlm, this.czmk, this.mkms, this.qqcs, this.xtbs, this.imei };
            sqlEntry.addParms(parmsValueArray);
            sqls.add(sqlEntry);
            Sql sqlControl = new Sql("wxbs_oracle");
            sqlControl.update(sqls);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
